mod start;
mod stop;

use std::error::Error;

use crate::args::ServerCommand;

pub fn dispatch(command: &ServerCommand) -> Result<(), Box<dyn Error>> {
    match command {
        ServerCommand::Start(command) => start::start(command),
        ServerCommand::Stop(command) => stop::stop(command),
    }
}
